package org.lx.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.lx.common.core.page.TableDataInfo;
import org.lx.nursing.domain.Reservation;
import org.lx.nursing.dto.ReservationPageDto;

import java.util.List;
import java.util.Map;

public interface ReservationService extends IService<Reservation> {
    Integer getCancelledCount();

    List<Map<String, Object>> getCountByTime(Long time);

    boolean insertReservation(Reservation reservation);


    List<Reservation> getReservationPage(ReservationPageDto reservationDto);

    boolean cancelReservation(Long id);

    /**
     * 自动更新预约状态
     */
    void updateReservationStatus();
}
